<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "xd_task_desc".
 *
 * @property string $id
 * @property string $task_id
 * @property string $task_desc
 * @property string $img_url
 * @property string $create_time
 * @property string $update_time
 */
class TaskDesc extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'xd_task_desc';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['create_time', 'update_time'], 'safe'],
            [['task_id'], 'string', 'max' => 100],
            [['task_desc', 'img_url'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', '主键id'),
            'task_id' => Yii::t('app', '任务id'),
            'task_desc' => Yii::t('app', '任务文案'),
            'img_url' => Yii::t('app', '图片url'),
            'create_time' => Yii::t('app', '创建时间'),
            'update_time' => Yii::t('app', '修改时间'),
        ];
    }
}
